#include "text_muduoclick.hpp"
#define DEBUG 0
#define LINF 1
#define ERRE 2
// 打印日志
#define LDEFAULT DEBUG
#define LOG(lever, format,...) {\
    if(lever >= LDEFAULT)\
    {\
        time_t t = time(nullptr);\
        struct tm* lt = localtime(&t);\
        char time_t[32] = {0};\
        strftime(time_tmp, 31, "%m-%d %T", lt);\
        printf("[%s %s %d]"format "\n", time_tmp, __FILE__, __LINE__, ##__VA__ARGS_);\
    }\
}
#define DLOG(format, ...) LOG(DEBUG, format, ##__VA__ARGS_);
#define LLOG(format, ...) LOG(LEBUG, format, ##__VA__ARGS_);
#define ELOG(format, ...) LOG(EEBUG, format, ##__VA__ARGS_);

int main()
{
    test_click();
    return 0;
}